.draggable-area {
  -webkit-app-region: drag;
  user-select: none;
  cursor: move;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

/* 确保所有子元素不被拖动 */
.draggable-area * {
  -webkit-app-region: no-drag;
}

/* 确保按钮和输入框不被拖动 */
.draggable-area button,
.draggable-area input,
.draggable-area textarea,
.draggable-area select,
.draggable-area [role="button"] {
  -webkit-app-region: no-drag;
  cursor: default;
}

/* 确保链接可以点击 */
.draggable-area a {
  -webkit-app-region: no-drag;
  cursor: pointer;
}

/* 确保窗口控制按钮不被拖动 */
.draggable-area .window-controls {
  -webkit-app-region: no-drag;
}

/* 确保登录表单不被拖动 */
.draggable-area .login-form {
  -webkit-app-region: no-drag;
}
